#pragma once

#include "ff7763header.h"

class CRandMediaData
{
public:
	CRandMediaData(int aSR, int aCh, int vW, int vH);
	virtual ~CRandMediaData();

public:
	AVFrame* GetYuvImage();
	void     GetAudioData(int16_t *samples, int frame_size, int nb_channels);

private:
	
	AVFrame *alloc_picture(int pix_fmt, int width, int height);
	



private:

	float t, tincr, tincr2;
	int16_t *samples;
	uint8_t *audio_outbuf;
	int audio_outbuf_size;
	int audio_input_frame_size;
	AVFrame* picture;
	int width, height;




};